package com.yoku.view.controller;

import com.dubbo.annotation.Consumer;
import com.yoku.article.service.ArticleWriteService;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Desc:
 * Date: 2016/12/12
 */

@RequestMapping(value = "/api/article")
@RestController
public class ArticleController {
    @Consumer
    private ArticleWriteService articleWriteService;


    @RequestMapping(value = "/save", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
    public Boolean saveArticle(){

        return articleWriteService.saveArticleAndTag();

    }
}
